home *** CD-ROM | disk | FTP | other *** search
/ Aminet 25 / Aminet 25 (1998)(GTI - Schatztruhe)[!][Jun 1998].iso / Aminet / text / misc / nroff.lha / nroff / tests.shar.Z / tests.shar / mc.ms < prev    next >
Text File  |  1998-03-09  |  2KB  |  66 lines

  1. .\" test .mc capability. execute with:   nroff -ms mc.ms
  2. .\" tests .mc on centered, filled, unfilled text.
  3. .ce 1
  4. .mc \(br 0.2i
  5. Testing the Margin Character Command
  6. .mc
  7. .SH
  8. OVERVIEW
  9. .LP
  10. This is a test of the \.mc command in nroff.
  11. It adds a character in the right margin when on and leaves if off otherwise.
  12. .br
  13. .mc | 2
  14. .LP
  15. These lines should have a change bar.
  16. Turn on margin character mode by adding an \.mc command with at least one
  17. argument.
  18. Note that nroff currently ignores the argument, except to turn on the mode.
  19. The margin character is currently always a vertical bar ("|") and is located
  20. 2 spaces to the right of the right margin.
  21. .mc
  22. .br
  23. Now it should be off.
  24. Turn off mc mode with an \.mc command with no arguments.
  25. .LP
  26. You can add margin characters to no fill areas as well.
  27. nroff will automatically add enough spaces to fill the line and make the
  28. character line up with the right margin as with fill mode.
  29. .sp
  30. .nf
  31. This is a no fill area.
  32. Here is a change bar in a no fill area (note the blank
  33. line is changed as well):
  34. .mc \(br 0.2i
  35.  
  36. THIS LINE IS CHANGED!
  37. .mc
  38. NO MORE CHANGES!!!
  39. If the line is longer than the right margin, the
  40. margin character is appended to the line:
  41. .mc \(br 0.2i
  42. THIS IS A VERY,VERY,VERY,VERY,VERY,VERY,VERY,VERY,VERY,VERY LONG LINE...
  43. .mc
  44. NO MORE CHANGES HERE!!!
  45. .fi
  46. .br
  47. .mc \(br 0.2i
  48. .SH
  49. NEW SECTION
  50. .LP
  51. Here is an entire section added.
  52. It should have change bars for all lines, including the spaces before
  53. the section heading.
  54. .LP
  55. This \.mc capability contains the same bugs as the normal unix \.mc
  56. command.
  57. You should put a \.br command before the \.mc which ends the margin
  58. character section to force the character on lines which end before
  59. the entire line is filled.
  60. .mc
  61. .br
  62. .SH
  63. FINALE
  64. .LP
  65. It section should not have any more change bars.
  66.